package com.yueqian.epidemic.service;

import com.yueqian.epidemic.beans.DailyEpidemicInfo;
import com.yueqian.epidemic.beans.EpidemicDetailInfo;
import com.yueqian.epidemic.beans.ProvinceInfo;

import java.util.List;

public interface EpidemicService {

    /**
     * 保存这一批6个省份的数据，并且返回下一批省份数据
     * @param dailyEpidemicInfo
     * @param userId
     * @return
     */
    List<ProvinceInfo> saveData(DailyEpidemicInfo dailyEpidemicInfo, Integer userId);

    /**
     * 获得最近的疫情数据
     * @return
     */
    List<EpidemicDetailInfo> findLastestData();
}
